package com.ldy.transmit.service.impl;

import java.util.List;

import com.ldy.transmit.mapper.TransmitMapper;
import com.ldy.transmit.model.Transmit;
import com.ldy.transmit.model.TransmitExample;
import com.ldy.transmit.service.TransmitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

//@Service
@Transactional
public class TransmitServiceImpl implements TransmitService{
	
	@Autowired
	private TransmitMapper transmitMapper;
	
	@Override
	public int deleteByPrimaryKey(Long id) {
		return transmitMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Transmit record) {
		return transmitMapper.insert(record);
	}

	@Override
	public int insertSelective(Transmit record) {
		return transmitMapper.insertSelective(record);
	}

	@Override
	public List<Transmit> selectByExample(TransmitExample example) {
		return transmitMapper.selectByExample(example);
	}

	@Override
	public Transmit selectByPrimaryKey(Long id) {
		return transmitMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(Transmit record) {
		return transmitMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Transmit record) {
		return transmitMapper.updateByPrimaryKey(record);
	}

}
